using System;
using System.Collections.Generic;
using System.Text;
using Barrage;
using Spacedash.Game.Meshes;
using Spacedash.Logic;
using SlimDX;
using Barrage.Textures;
using Spacedash.Logic.Scenario;

namespace Spacedash.Game.Items
{
    class ScenarioItem: Item
    {
        ScenarioMesh mesh;

        Scenario scenario;

        public ScenarioItem(Scenario scenario)
        {
            this.scenario=scenario;
            mesh = new ScenarioMesh(scenario, TextureManager.Textures[scenario.GroundTexture]);
            addMesh(mesh);
        }

        protected override void DoUpdate()
        {
            mesh.UpdateColors();
            base.DoUpdate();
        }

        public override void Dispose()
        {
            mesh = null;
            base.Dispose();
        }
    }
}
